package com.woniuxy.third.mapper;

import com.woniuxy.third.entity.Course;
import com.woniuxy.third.entity.Teacher;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;
import java.util.Map;

@Mapper
public interface CourseMapper {
    public Course findCourseByid(int id);

    public List<Course> findAllCourse();

    public boolean addCourse(Course course);

    int updateCourse(Course course);

    List<Course> findCourseByCondition(Map condition);

    List<Course> findCollectionCourseByUid(int uid);

    List<Course> findCourseByUid(int uid);

    List<Course> findCourseBytid(int id);

    Course findCourseByName(@Param("name") String name,@Param("teacherid") int teacherid);
}

